﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_KhuyenMai.ascx.cs" Inherits="Controls_UC_KhuyenMai" %>
<style type="text/css">

    .style1
    {
        width: 165px;
    }
    .style2
    {
        width: 164px;
        height: 23px;
    }
    </style>
     <script src="LightBox/js/jquery.js"></script>
    <script src="LightBox/js/jquery.lightbox-0.5.js"></script>
    <link rel="Stylesheet" type="text/css" href="LightBox/css/jquery.lightbox-0.5.css" />
    <script type="text/javascript">
        $(document).ready(function(){
        $('.lightbox').lightBox();
    });
    </script>
<asp:DataList ID="DataList1" runat="server" Width="100%">
    <ItemTemplate>
        <table class="style1" style="width: 165px">
            <tr>
                <td align="right" style="width: 164px; padding-right: 20px;" valign="top">
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/post_new.gif" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 164px" valign="top">
                <a href="<%# Eval("Hinh2") %>" class="lightbox">
                    <asp:Image ID="Image1" runat="server" Height="55px" 
                                    ImageUrl='<%# Eval("Hinh") %>' ToolTip='<%# Eval("TenSp") %>' 
                        Width="50px" />
                </a>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" class="style2">
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# "../Chi_tiet_sp.aspx?ten=" + Eval("TenSp")+"&ma="+Eval("TenHang") %>' 
                                    Text='<%# Eval("TenSp") %>' 
                        ToolTip='<%# Eval("Gia","{0:#,##0} VND") %>'></asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 164px">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#3366FF" 
                                    Text="Giá gốc"></asp:Label>
                    &nbsp;<asp:Label ID="Label2" runat="server" style="color: #FF5050; font-weight: 700; text-decoration: line-through;" 
                                    Text='<%# Eval("Gia","{0:#,##0} VND") %>'></asp:Label>
                    <br />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 164px">
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="#3366FF" 
                        Text="Giá Sốc: "></asp:Label>
                    <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="Red" 
                        Text='<%# Eval("GiaKM","{0:#,##0} VND") %>'></asp:Label>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
<asp:Label ID="LBLKM" runat="server" ForeColor="Red"></asp:Label>
